<?php
/**
 * @author GhostWei
 * @date 2012-5-31
 */
class picture_category_concept extends system_concept_abstract {
	
	public function __construct($lang) {
		parent::__construct(array('lang' => $lang), array('lang = ?' => $lang));
	}
	
	public function init() {
		$this->setRowClass('picture_category_row');
		$this->setModel('picture_category_model', 'category');
		$this->setJoinModel('picture_category_locale_model', 'locale.category_id = category.id', 'locale');
		$this->setModelCols('category', array('id', 'parent_id', 'name', 'cover'));
		$this->setModelCols('category', array('display_order', 'is_recommend', 'is_active', 'creationtime', 'lastmodified'));
		$this->setModelCols('locale', array('category_id', 'lang', 'stotal', 'title', 'description'));
	}

}
